package com.suda.sudaexamsystem.dto;

import com.suda.sudaexamsystem.pojo.QuestionType;

import java.math.BigDecimal;

public class QuestionDto {
    private int id;
    // 题号
    private int orderId;
    // 题目
    private String name;
    // 题型
    private QuestionType type;
    // 题目分值
    private BigDecimal score;
    // 选项A
    private String optionA;
    // 选项B
    private String optionB;
    // 选项C
    private String optionC;
    // 选项D
    private String optionD;
    // 答案
    private String answer;

    public QuestionDto() {
    }

    public QuestionDto(int id, int orderId, String name, QuestionType type, BigDecimal score, String optionA, String optionB, String optionC, String optionD, String answer) {
        this.id = id;
        this.orderId = orderId;
        this.name = name;
        this.type = type;
        this.score = score;
        this.optionA = optionA;
        this.optionB = optionB;
        this.optionC = optionC;
        this.optionD = optionD;
        this.answer = answer;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public QuestionType getType() {
        return type;
    }

    public void setType(QuestionType type) {
        this.type = type;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public String getOptionA() {
        return optionA;
    }

    public void setOptionA(String optionA) {
        this.optionA = optionA;
    }

    public String getOptionB() {
        return optionB;
    }

    public void setOptionB(String optionB) {
        this.optionB = optionB;
    }

    public String getOptionC() {
        return optionC;
    }

    public void setOptionC(String optionC) {
        this.optionC = optionC;
    }

    public String getOptionD() {
        return optionD;
    }

    public void setOptionD(String optionD) {
        this.optionD = optionD;
    }

    public String getAnswer() {
        return answer;
    }

    public void setAnswer(String answer) {
        this.answer = answer;
    }
}
